package com.itheima.a02mystream;

import java.util.Arrays;

public class StreamDemo4 {
    public static void main(String[] args) {
        //数组       public static<T> Stream<T> stream(T[] array)        Arrays工具类中的静态方法

        //1.创建数组
        int[] arr={1,2,3,4,5,6,7,8,9,10};
        String[]  arr2={"a","b","v"};

        //2.获取stream流
        Arrays.stream(arr).forEach(s-> System.out.println(s));

        System.out.println("=====================");

        Arrays.stream(arr2).forEach(s-> System.out.println(s));
    }
}
